const TokenKey = 'App-Token';

export function getToken() {
  return uni.getStorageSync(TokenKey);
}

export function setToken(token: string) {
  return uni.setStorageSync(TokenKey, token);
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey);
}

const RefreshTokenKey = 'App-Refresh-Token';

export function getRefreshToken() {
  return uni.getStorageSync(RefreshTokenKey);
}

export function setRefreshToken(token: string) {
  return uni.setStorageSync(RefreshTokenKey, token);
}

export function removeRefreshToken() {
  return uni.removeStorageSync(RefreshTokenKey);
}

